<!DOCTYPE html>
<p>Test for bug <a href="http://webkit.org/b/87314">87314</a>: Crash in LayoutTableCol::nextColumn</p>
<table>
    <colgroup>
    </colgroup>
    <tbody>
        <td></td>
    </tbody>
</table>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var canvas = document.createElement("canvas");
    canvas.style.display = "table-column";
    document.getElementsByTagName("colgroup")[0].appendChild(canvas);
    document.body.offsetTop;
    document.body.appendChild(document.createTextNode("PASSED, this test didn't crash or ASSERT."));
</script>
